REM backup the file to test and stubbing function.  (please enable in embedded unit test bench)
REM python stub_tool/stub_tool.py c_file_path=.\src\%1\%2.c

REM start compile.   if you don't have command 'make',then may be you need to copy C:\MinGW\bin\mingw32-make.exe to C:\MinGW\bin\make.exe
REM make clean

make

REM may be you can modify some code to make by yourself again.
pause

REM execute and catch the print log.
workspace.exe > .\test_protocol.txt

REM generate coverage protocol for report pdf.  **should be edited for which unit you want to have coverage.
gcov -o src\%1  %2.c > .\coverage_protocol.txt

REM execute python tool to generate report pdf.
python test_tools/generate_report.py test_protocol.txt coverage_protocol.txt info_out.json

REM restore the c file. (please enable in embedded unit test bench)
REM echo f| move .\src\%1\%2.c.bak .\src\%1\%2.c







